package com.example.carconsumer.controller.dl.admin;

import com.alibaba.dubbo.config.annotation.Reference;
import com.example.carinterface.service.dl.admin.CommentService;
import com.example.carinterface.utils.ResultJson;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@CrossOrigin
@Api(tags = "admin-评价管理")
@RestController
@RequestMapping("/admin/comment")
public class CommentController {

    @Reference(check = false)
    private CommentService commentService;

    //司机评论
    @ApiOperation("司机评论列表（表有问题）")
    @PostMapping("/findComment")
    public ResultJson<List<Map<String,Object>>> findComment(@ApiParam("condition:条件，" +
            "startTime:开始时间，" +
            "endTime：结束时间") @RequestBody Map<String,Object> map){

        return commentService.findComment(map);

    }
    //敏感词设置（无表）





}
